﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ComicBookApp.DataModels
{
    /// <summary>
    /// Class for holding comic book information
    /// Also holds like of characters that appear in the comic book
    /// </summary>
    public class ComicBook
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Synopsis { get; set; }
        public string ImageUrl { get; set; }

        public virtual List<Character> Characters { get; set; }

        public ComicBook() { }

        public ComicBook(string title, string synopsis, string imageUrl)
        {
            Title = title;
            Synopsis = synopsis;
            ImageUrl = imageUrl;
        }

        public void SetProperties(ComicBook comicBook)
        {
            this.Title = comicBook.Title;
            this.Synopsis = comicBook.Synopsis;
            this.ImageUrl = comicBook.ImageUrl;
        }


    }
}
